const pkg = require('../package.json')
const chalk = require('chalk')
const buildRN = require('@mf2e/build-rn')

async function build(platform) {
  console.log(chalk.bold.yellow(`正在构建${platform}...`))

  await buildRN(pkg.name, platform)
}

async function execBuild() {
  await build('ios')
  await build('android')
  await build('harmony')
  console.log(chalk.bold.green('构建完成！'))
}

execBuild()
